<template>
  <div class="examine" :class="{ active: flag }">
    <div class="point">审核</div>
    <div class="info">
      <ul class="intro">
        <li>
          <span>操作人员</span>
          <p>
            {{ info.operaterName }}
            <template v-if="info.a0105">| {{ info.a0105 }}</template>
          </p>
        </li>
        <li>
          <span>人员职务</span>
          <p>{{ info.e0102Name }}</p>
        </li>
      </ul>
      <div class="timer">{{ info.e0307 }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      default: () => {},
    },
    flag: {
      type: Boolean,
      default: true,
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
.examine {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-bottom: 20px;
  .point {
    flex: 0 0 auto;
    width: 52px;
    line-height: 20px;
    margin-right: 15px;
    padding: 4px 8px;
    background: #156abc;
    border-radius: 3px;
    color: #fff;
    text-align: center;
  }
  .info {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #bebebe;
    background: #e2e5ef;
    display: flex;
    align-items: center;
    .intro {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      li {
        flex: 0 0 auto;
        min-width: 26.5%;
        height: 36px;
        display: flex;
        align-items: center;
        span {
          flex: 0 0 auto;
          width: 65px;
        }
        p {
          flex: 1;
          height: 36px;
          line-height: 34px;
          border: 1px solid #3e9fc8;
          padding: 0 8px;
          border-radius: 4px;
        }
      }
    }
    .timer {
      flex: 0 0 auto;
      width: 142px;
      text-align: right;
    }
  }
  &.active {
    &:after {
      content: "";
      position: absolute;
      top: 28px;
      left: 23px;
      width: 2px;
      height: calc(100% - 28px);
      background: #c3c3c3;
    }
  }
}
</style>
